<template>
  <div>
    <p>children one</p>
    <router-view></router-view>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { useRoute } from 'vue-router';
export default defineComponent({
  props: {
    name: String,
    age: String,
  },
  name: '',
  setup(props) {
    const route = useRoute();
    console.log(props.name, props.age);
    console.log(route.params);
    console.log(route.query);
    return {};
  },
});
</script>

<style scoped></style>
